import requests, pprint

from requests.sessions import session

url = 'http://127.0.0.1:8210/api/sign'
body = {
    "action" : "signin",
    "username": "fangfang",
    "password": "88888888"
}

session = requests.session()
session.post(url, json=body)

url2 = 'http://127.0.0.1:8210/api/account'
params = {
    "action": "listbypage",
    "pagesize": 1,
    "pagenum": 2,
    "keywords": ""
}
res = session.get(url2, params=params)

pprint.pprint(res.json(), sort_dicts=0)